package org.walkerljl.practice.asyncparallel;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 异步并行处理
 *
 * @author lijunlin
 */
public class AsyncParallelTest2 {

    public static void main(String[] args) {
        int taskAmount = 5;
        final CountDownLatch countDownLatch = new CountDownLatch(taskAmount);
        ExecutorService executorService = Executors.newCachedThreadPool();
        for (int i = 0; i < taskAmount; i++) {
            //executorService.submit(new )
        }
    }
}
